ComponentOne Bitmap for WinForms
C1.Win.C1DX.4.8 Assembly / C1.Util.DX Namespace / DataStream Class / Read Method / Read<T>() Method
The type of the value to be read from the stream.

In This Topic
    Read<T>() Method
    In This Topic
    Reads a single value from the current stream and advances the current position within this stream by the number of bytes read.
    Syntax
    'Declaration
     
    Public Overloads Function Read(Of T As {New, Struct})() As T
    public T Read<T>()
    where T: new(), struct

    Type Parameters

    T
    The type of the value to be read from the stream.

    Return Value

    The value that was read.
    Exceptions
    ExceptionDescription
    This stream does not support reading.
    Remarks
    In order to provide faster read/write, this operation doesn't check stream bound. A client must carefully not read/write above the size of this datastream.
    See Also